﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Mono.Cecil;
using System.Diagnostics;

namespace cs746
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();
            #region 

            List<String> libs = ConfigReader.ReadConfig("smallDemo.txt");
            TAData data = CecilAnalyzer.Analyze(@"C:\Users\okononen\Documents\Visual Studio 2010\Projects\testcecil\testcecil\bin\Debug\testcecil.exe", libs, @"C:\Users\okononen\Documents\Visual Studio 2010\Projects\testcecil\", true);
            data.SaveToFile("ta_stub.ta", @"C:\Users\okononen\courses\cs746\smallDemo.ls.ta");
            #endregion
            
            #region 
            //List<String> libs = ConfigReader.ReadConfig("SD_2.2.txt");
            //TAData data = CecilAnalyzer.Analyze(@"sharpdevelop\SharpDevelop.exe", libs, @"D:\src\", true);
            //data.SaveToFile("ta_stub.ta", @"C:\Users\okononen\courses\cs746\SD_2.2.ls.ta");
            #endregion

            #region
            //List<String> libs = ConfigReader.ReadConfig("SD_4.1.txt");
            //TAData data = CecilAnalyzer.Analyze(@"sharpdevelop4\SharpDevelop.exe", libs, @"D:\SharpDevelop_4.1.0.8000_Source\src\", true);
            //data.SaveToFile("ta_stub.ta", @"C:\Users\okononen\courses\cs746\SD_4.1.ls.ta");            
            #endregion

            #region
            //List<String> libs = ConfigReader.ReadConfig("SD_4.1.txt");
            //TAData data = CecilAnalyzer.Analyze(@"sharpdevelop4\SharpDevelop.exe", libs, @"D:\SharpDevelop_4.1.0.8000_Source\src\", false);
            //data.SaveToFile("ta_stub.ta", @"C:\Users\okononen\courses\cs746\SD_4.1_namespaceView.ls.ta");
            #endregion

            sw.Stop();
            Console.WriteLine(sw.Elapsed.ToString());
            Console.ReadKey();
        }
    } 
}
